package com.example.smartclassroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartclassroom.entity.Examplan;
import com.example.smartclassroom.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ExamplanMapper extends BaseMapper<Examplan> {
    //新增
    int insert(Examplan examplan);

    //删除
//    int deleteById(Integer id);

    //修改
    int updateById(Examplan examplan);

    //根据Id查询
    Examplan selectById(Integer id);

    //查询所有
    List<Examplan> selectAll(Examplan examplan);

    //查询考试安排个数
    Integer queryTotal(Examplan examplan);

}
